#ifndef FLIGHTSEGMENTWIDGET_H
#define FLIGHTSEGMENTWIDGET_H

#include <QWidget>
#include <QString>

namespace Ui {
class FlightSegmentWidget;
}

class FlightSegmentWidget : public QWidget {
    Q_OBJECT

public:
    explicit FlightSegmentWidget(QWidget* parent = nullptr);
    ~FlightSegmentWidget();

    // Setter methods to update the labels with flight segment data
    void setFlightNumber(const QString& flightNumber);
    void setAirline(const QString& airline);
    void setDepartureAirport(const QString& departureAirport);
    void setArrivalAirport(const QString& arrivalAirport);
    void setDepartureTime(const QString& departureTime);
    void setArrivalTime(const QString& arrivalTime);
    void setPrice(double price);
    void setTotalTime(const QString& totalTime);
    void setIsTransfer(bool isTransfer);

private:
    Ui::FlightSegmentWidget* ui;
};

#endif // FLIGHTSEGMENTWIDGET_H
